package com.pivotal.cloud.mybatis.core.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import org.apache.ibatis.session.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @className: com.pivotal.cloud.mybatis.core.injector.MybatisSqlInjector
 * @projectName: PivotalCloud项目
 * @module: PivotalCloud项目-MybatisSqlInjector类，主要位于Mybatis模块-SQL注入器模块
 * @content: MybatisSqlInjector-SQL注入器
 * @author: Powered by Marklin
 * @datetime: 2025-12-06 13:24
 * @version: 1.0.0
 * @copyright: Copyright © 2018-2025 PivotalCloud Systems Incorporated. All rights reserved.
 */
@Component
public class MybatisSqlInjector extends DefaultSqlInjector {
    @Override
    public List<AbstractMethod> getMethodList(Configuration configuration, Class<?> mapperClass, TableInfo tableInfo) {
        //[1].获取MyBatis-Plus原有基础所有方法（如selectById, insert等）
        List<AbstractMethod> methodList = super.getMethodList(configuration,mapperClass,tableInfo);
        // 添加我们自定义的方法
        //methodList.add(new InsertBatchMethod());
        return methodList;
    }
}
